Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DiskReadViolation on ChuckerCollector #975

Merged
merged 1 commit into from
Mar 2, 2023
Merged

Conversation

cortinico
Copy link
Member

📄 Context

The sample app is insta-crashing when doing http activity.
That happens because we're calling RepositoryProvider.transaction().... on the UI thread.

🔴 Video

Before After
before after

🚫 Breaking

nope

🛠️ How to test

See the atteched video

⏱️ Next steps

n/a

@vbuberen
Copy link
Collaborator

It is strange, because Room handles switching to a different thread automatically for quite some time already:
https://medium.com/androiddevelopers/room-coroutines-422b786dc4c5

@cortinico
Copy link
Member Author

It is strange, because Room handles switching to a different thread automatically for quite some time already: medium.com/androiddevelopers/room-coroutines-422b786dc4c5

You're right 👍

Seems like there is a bug in Room 2.5.0: https://issuetracker.google.com/issues/270841445

How do we proceed? Either we merge this as it is, or we suppress the penalityDeath for this scenario as well?

@vbuberen
Copy link
Collaborator

vbuberen commented Mar 2, 2023

Thanks for finding an open issue.
Let's merge as it is instead of suppressing penalityDeath.

@cortinico cortinico merged commit ac4fcb0 into develop Mar 2, 2023
@cortinico cortinico deleted the nc/diskreadviolation branch March 2, 2023 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants